//声明数组，定义时使用长度
/*
let arr:number[] = new Array(3);
for (let i = 0; i < arr.length; i++) {
    arr[i] = i*2;
    console.log(arr[i]);
}*/

//在声明数组时，就进行赋值
// let arr_new = ["abc","cde","cfg"];//
let arr_new:string[] = new Array('a','b','c');
for (let i = 0; i < arr_new.length; i++) {
    console.log(arr_new[i]);

}





